//Source file: C:\\Users\\pc\\Desktop\\�������ʵ����java\\A1-4\\src\\OrderDetail.java


public class OrderDetail 
{
   private Long quantity;
   public Product theProduct[];
   public Order theOrder;

   public Long getQuantity() {
      return quantity;
   }

   public void setQuantity(Long quantity) {
      this.quantity = quantity;
   }

   public Product[] getTheProduct() {
      return theProduct;
   }

   public void setTheProduct(Product[] theProduct) {
      this.theProduct = theProduct;
   }

   public Order getTheOrder() {
      return theOrder;
   }

   public void setTheOrder(Order theOrder) {
      this.theOrder = theOrder;
   }

   /**
    * @roseuid 6541190A012F
    */
   public OrderDetail() 
   {
      Product product;
   }
   
   /**
    * @return Double
    * @roseuid 6541190A012D
    */
   public Double calculateSubTotal() 
   {
      Product product=null;
      return this.quantity*product.getPrice();
   }
   
   /**
    * @return Double
    * @roseuid 6541190A012E
    */
   public Double calculateWeight() 
   {
      Product product=null;
      return this.quantity*product.getWeight();
   }
}

























